import { OmitType, PickType } from '@nestjs/swagger';

import { User } from '@/modules/app/entities';

export class CreateUserDto extends PickType(User, [
  'phone',
  'name',
  'height',
  'weight',
  'gender',
  'birthDate',
  'totalPoint',
  'education',
  'comorbidities',
  'password',
  'role'
]) {}

export class LoginUserDto extends PickType(User, ['phone', 'password']) {}

export class UserResDto extends OmitType(User, [
  'password',
  'dietLogs',
  'analyticsEvents',
  'messages',
  'points',
  'role',
]) {}

export class UserDetailDto extends OmitType(User, ['password']) {}
